<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>常见的闭包</title>
</head>

<body>
    <!-- 1. 将函数作为另一个函数的返回值
         2. 将函数作为实参传递给另一个函数调用 -->
    <script>
        function fn1() {
            function fn2() {

            }
            return fn2;
        }
    </script>
</body>

</html>